<table class="lb_block" cellpadding="2" cellspacing="1">
	<tr>
		<td class="lb_block_title">{$smarty.const.LANG_USER_PANEL}</td>
	</tr>
	<tr>
		<td class="lb_block_body">
			<br />

			{if $action == "add_user"}
				<form action="{$webdir}admin.php?task={$task}&action={$action}" method="post">
					<table border="0" width="50%" align="center">
						<tr>
							<td>{$smarty.const.LANG_USER_NAME}: </td><td><input type="text" name="username" /></td>
						</tr>
						<tr>
							<td>{$smarty.const.LANG_PASSWORD}: </td><td><input type="text" name="password" /></td>
						</tr>
						<tr>
							<td>{$smarty.const.LANG_EMAIL}: </td><td><input type="text" name="email" /></td>
						</tr>
						<tr>
							<td>{$smarty.const.LANG_GROUP_NAME}: </td><td><select name="group">
							{foreach item=item from=$groups}
								<option value="{$item}">{$item}</option>
							{/foreach}
							</select></td>
						</tr>
					</table>
					<center><input type="submit" name="submit" value="{$smarty.const.LANG_SUBMIT}" /></center>
				</form>
			{elseif $action == "edit_user"}
				<form action="{$webdir}admin.php?task={$task}&action={$action}" method="post">
					<table border="0" width="50%" align="center">
						<tr>
							<td>{$smarty.const.LANG_USER_NAME}: </td><td><input type="text" name="username" /></td>
						</tr>
						<tr>
							<td>{$smarty.const.LANG_NEW_USER_NAME}: </td><td><input type="text" name="new_username" /></td>
						</tr>
						<tr>
							<td>{$smarty.const.LANG_NEW_EMAIL}: </td><td><input type="text" name="new_email" /></td>
						</tr>
						<tr>
							<td>{$smarty.const.LANG_NEW_PASSWORD}: </td><td><input type="text" name="new_password" /></td>
						</tr>
						<tr>
							<td>{$smarty.const.LANG_NEW_GROUP}: </td><td><select name="new_group">
							{foreach key=key item=item from=$groups}
								<option value="{$key}">{$item}</option>
							{/foreach}
							</select></td>
						</tr>
					</table>
					<center><input type="submit" name="submit" value="{$smarty.const.LANG_SUBMIT}" /></center>
				</form>			
			{elseif $action == "remove_user"}
				<form action="{$webdir}admin.php?task={$task}&action={$action}" method="post">
					<table border="0" width="50%" align="center">
						<tr>
							<td>{$smarty.const.LANG_USER_NAME}: </td><td><input type="text" name="username" /></td>
						</tr>
					</table>
					<center><input type="submit" name="submit" value="{$smarty.const.LANG_SUBMIT}" /></center>
				</form>
			{else}
				<ul><a href="{$webdir}admin.php?task=user&action=add_user">{$smarty.const.LANG_USER_ADD}</a></ul>
				<ul><a href="{$webdir}admin.php?task=user&action=edit_user">{$smarty.const.LANG_USER_EDIT}</a></ul>
				<ul><a href="{$webdir}admin.php?task=user&action=remove_user">{$smarty.const.LANG_USER_REMOVE}</a></ul>
			{/if}

			<br />
		</td>
	</tr>
</table>